﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooManagerEventTracingManagerWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Manager.EventTracingManager);
			Utils.BeginObjectRegister(type, L, translator, 0, 29, 2, 1);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Start", _m_Start);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Stop", _m_Stop);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "TrackStopwatch", _m_TrackStopwatch);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Trace", _m_Trace);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckReportErrors", _m_CheckReportErrors);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClientReport", _m_ClientReport);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClientRoleExtra", _m_ClientRoleExtra);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClientReportDownloadWhilePlaying", _m_ClientReportDownloadWhilePlaying);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClientRoleBehavior", _m_ClientRoleBehavior);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClientReportLoading", _m_ClientReportLoading);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClientReportQuality", _m_ClientReportQuality);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClientReportDnsError", _m_ClientReportDnsError);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClientReportError", _m_ClientReportError);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UploadError", _m_UploadError);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "PingReport", _m_PingReport);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitUrl", _m_InitUrl);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartCollectClientPerformance", _m_StartCollectClientPerformance);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "StopCollectClientPerformance", _m_StopCollectClientPerformance);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SwitchCollectionClientPerformanceActive", _m_SwitchCollectionClientPerformanceActive);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetOverFrame18Percent", _m_GetOverFrame18Percent);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAverageFps", _m_GetAverageFps);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetNeedLoadingReport", _m_SetNeedLoadingReport);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAccountInfo", _m_GetAccountInfo);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGameLanguage", _m_GetGameLanguage);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCSharpMode", _m_SetCSharpMode);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClientReportDownloadStart", _m_ClientReportDownloadStart);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClientReportDownloadSuccess", _m_ClientReportDownloadSuccess);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClientReportDownloadFailed", _m_ClientReportDownloadFailed);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClientReportDownloadLoading", _m_ClientReportDownloadLoading);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "RecommendDeviceGrade", _g_get_RecommendDeviceGrade);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "LastEventId", _g_get_LastEventId);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "LastEventId", _s_set_LastEventId);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
			
			
            
			
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new Yoozoo.Manager.EventTracingManager();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Manager.EventTracingManager constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new Yoozoo.Manager.EventTracingManager();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Manager.EventTracingManager constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Start(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Start(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Stop(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Stop(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_TrackStopwatch(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _tracingId = LuaAPI.lua_tostring(L, 2);
                    
                    gen_to_be_invoked.TrackStopwatch( _tracingId );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Trace(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& translator.Assignable<Yoozoo.Manager.E_TRACING_ID>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) 
                {
                    Yoozoo.Manager.E_TRACING_ID _eventId;translator.Get(L, 2, out _eventId);
                    string _extra = LuaAPI.lua_tostring(L, 3);
                    
                    gen_to_be_invoked.Trace( _eventId, _extra );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& translator.Assignable<Yoozoo.Manager.E_TRACING_ID>(L, 2)) 
                {
                    Yoozoo.Manager.E_TRACING_ID _eventId;translator.Get(L, 2, out _eventId);
                    
                    gen_to_be_invoked.Trace( _eventId );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Manager.EventTracingManager.Trace!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CheckReportErrors(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.CheckReportErrors(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClientReport(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    int _eventId = LuaAPI.xlua_tointeger(L, 2);
                    
                    gen_to_be_invoked.ClientReport( _eventId );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 6&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 6) || LuaAPI.lua_type(L, 6) == LuaTypes.LUA_TSTRING)) 
                {
                    string _eventId = LuaAPI.lua_tostring(L, 2);
                    string _loadingStep = LuaAPI.lua_tostring(L, 3);
                    string _isKeyLoadingStep = LuaAPI.lua_tostring(L, 4);
                    string _loadingDesc = LuaAPI.lua_tostring(L, 5);
                    string _extra = LuaAPI.lua_tostring(L, 6);
                    
                    gen_to_be_invoked.ClientReport( _eventId, _loadingStep, _isKeyLoadingStep, _loadingDesc, _extra );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING)) 
                {
                    string _eventId = LuaAPI.lua_tostring(L, 2);
                    string _loadingStep = LuaAPI.lua_tostring(L, 3);
                    string _isKeyLoadingStep = LuaAPI.lua_tostring(L, 4);
                    string _loadingDesc = LuaAPI.lua_tostring(L, 5);
                    
                    gen_to_be_invoked.ClientReport( _eventId, _loadingStep, _isKeyLoadingStep, _loadingDesc );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Manager.EventTracingManager.ClientReport!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClientRoleExtra(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) 
                {
                    string _json = LuaAPI.lua_tostring(L, 2);
                    bool _isApm = LuaAPI.lua_toboolean(L, 3);
                    
                    gen_to_be_invoked.ClientRoleExtra( _json, _isApm );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) 
                {
                    string _json = LuaAPI.lua_tostring(L, 2);
                    
                    gen_to_be_invoked.ClientRoleExtra( _json );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& translator.Assignable<ZString.zstring>(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) 
                {
                    ZString.zstring _json = (ZString.zstring)translator.GetObject(L, 2, typeof(ZString.zstring));
                    bool _isApm = LuaAPI.lua_toboolean(L, 3);
                    
                    gen_to_be_invoked.ClientRoleExtra( _json, _isApm );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& translator.Assignable<ZString.zstring>(L, 2)) 
                {
                    ZString.zstring _json = (ZString.zstring)translator.GetObject(L, 2, typeof(ZString.zstring));
                    
                    gen_to_be_invoked.ClientRoleExtra( _json );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Manager.EventTracingManager.ClientRoleExtra!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClientReportDownloadWhilePlaying(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    float _progress = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    gen_to_be_invoked.ClientReportDownloadWhilePlaying( _progress );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClientRoleBehavior(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _json = LuaAPI.lua_tostring(L, 2);
                    
                    gen_to_be_invoked.ClientRoleBehavior( _json );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClientReportLoading(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _taskName = LuaAPI.lua_tostring(L, 2);
                    
                    gen_to_be_invoked.ClientReportLoading( _taskName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClientReportQuality(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _avgFps = LuaAPI.lua_tostring(L, 2);
                    string _behavior = LuaAPI.lua_tostring(L, 3);
                    string _quality = LuaAPI.lua_tostring(L, 4);
                    
                    gen_to_be_invoked.ClientReportQuality( _avgFps, _behavior, _quality );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClientReportDnsError(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) 
                {
                    string _moduleName = LuaAPI.lua_tostring(L, 2);
                    string _uri = LuaAPI.lua_tostring(L, 3);
                    string _msg = LuaAPI.lua_tostring(L, 4);
                    
                    gen_to_be_invoked.ClientReportDnsError( _moduleName, _uri, _msg );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) 
                {
                    string _moduleName = LuaAPI.lua_tostring(L, 2);
                    string _uri = LuaAPI.lua_tostring(L, 3);
                    
                    gen_to_be_invoked.ClientReportDnsError( _moduleName, _uri );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) 
                {
                    string _moduleName = LuaAPI.lua_tostring(L, 2);
                    
                    gen_to_be_invoked.ClientReportDnsError( _moduleName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Manager.EventTracingManager.ClientReportDnsError!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClientReportError(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING)) 
                {
                    string _desc = LuaAPI.lua_tostring(L, 2);
                    string _errorCode = LuaAPI.lua_tostring(L, 3);
                    string _errorMsg = LuaAPI.lua_tostring(L, 4);
                    string _args = LuaAPI.lua_tostring(L, 5);
                    
                    gen_to_be_invoked.ClientReportError( _desc, _errorCode, _errorMsg, _args );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) 
                {
                    string _desc = LuaAPI.lua_tostring(L, 2);
                    string _errorCode = LuaAPI.lua_tostring(L, 3);
                    string _errorMsg = LuaAPI.lua_tostring(L, 4);
                    
                    gen_to_be_invoked.ClientReportError( _desc, _errorCode, _errorMsg );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) 
                {
                    string _desc = LuaAPI.lua_tostring(L, 2);
                    string _errorCode = LuaAPI.lua_tostring(L, 3);
                    
                    gen_to_be_invoked.ClientReportError( _desc, _errorCode );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) 
                {
                    string _desc = LuaAPI.lua_tostring(L, 2);
                    
                    gen_to_be_invoked.ClientReportError( _desc );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Manager.EventTracingManager.ClientReportError!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UploadError(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _name = LuaAPI.lua_tostring(L, 2);
                    string _args = LuaAPI.lua_tostring(L, 3);
                    
                    gen_to_be_invoked.UploadError( _name, _args );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PingReport(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _pingInfo = LuaAPI.lua_tostring(L, 2);
                    
                    gen_to_be_invoked.PingReport( _pingInfo );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_InitUrl(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _url = LuaAPI.lua_tostring(L, 2);
                    
                    gen_to_be_invoked.InitUrl( _url );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_StartCollectClientPerformance(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 6&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 6) || LuaAPI.lua_type(L, 6) == LuaTypes.LUA_TSTRING)) 
                {
                    bool _isSelfDestory = LuaAPI.lua_toboolean(L, 2);
                    float _sampleTimeInterval = (float)LuaAPI.lua_tonumber(L, 3);
                    string _sceneName = LuaAPI.lua_tostring(L, 4);
                    string _sceneArg = LuaAPI.lua_tostring(L, 5);
                    string _loadingTime = LuaAPI.lua_tostring(L, 6);
                    
                        var gen_ret = gen_to_be_invoked.StartCollectClientPerformance( _isSelfDestory, _sampleTimeInterval, _sceneName, _sceneArg, _loadingTime );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 5&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING)) 
                {
                    bool _isSelfDestory = LuaAPI.lua_toboolean(L, 2);
                    float _sampleTimeInterval = (float)LuaAPI.lua_tonumber(L, 3);
                    string _sceneName = LuaAPI.lua_tostring(L, 4);
                    string _sceneArg = LuaAPI.lua_tostring(L, 5);
                    
                        var gen_ret = gen_to_be_invoked.StartCollectClientPerformance( _isSelfDestory, _sampleTimeInterval, _sceneName, _sceneArg );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 4&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) 
                {
                    bool _isSelfDestory = LuaAPI.lua_toboolean(L, 2);
                    float _sampleTimeInterval = (float)LuaAPI.lua_tonumber(L, 3);
                    string _sceneName = LuaAPI.lua_tostring(L, 4);
                    
                        var gen_ret = gen_to_be_invoked.StartCollectClientPerformance( _isSelfDestory, _sampleTimeInterval, _sceneName );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    bool _isSelfDestory = LuaAPI.lua_toboolean(L, 2);
                    float _sampleTimeInterval = (float)LuaAPI.lua_tonumber(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.StartCollectClientPerformance( _isSelfDestory, _sampleTimeInterval );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) 
                {
                    bool _isSelfDestory = LuaAPI.lua_toboolean(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.StartCollectClientPerformance( _isSelfDestory );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Manager.EventTracingManager.StartCollectClientPerformance!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_StopCollectClientPerformance(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _id = LuaAPI.xlua_tointeger(L, 2);
                    
                    gen_to_be_invoked.StopCollectClientPerformance( _id );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SwitchCollectionClientPerformanceActive(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    bool _active = LuaAPI.lua_toboolean(L, 2);
                    
                    gen_to_be_invoked.SwitchCollectionClientPerformanceActive( _active );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetOverFrame18Percent(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GetOverFrame18Percent(  );
                        LuaAPI.lua_pushnumber(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetAverageFps(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GetAverageFps(  );
                        LuaAPI.lua_pushnumber(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetNeedLoadingReport(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    bool _needReport = LuaAPI.lua_toboolean(L, 2);
                    
                    gen_to_be_invoked.SetNeedLoadingReport( _needReport );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetAccountInfo(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GetAccountInfo(  );
                        LuaAPI.lua_pushstring(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetGameLanguage(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GetGameLanguage(  );
                        LuaAPI.lua_pushstring(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetCSharpMode(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    bool _mode = LuaAPI.lua_toboolean(L, 2);
                    
                    gen_to_be_invoked.SetCSharpMode( _mode );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClientReportDownloadStart(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _resourceName = LuaAPI.lua_tostring(L, 2);
                    
                    gen_to_be_invoked.ClientReportDownloadStart( _resourceName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClientReportDownloadSuccess(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _resourceName = LuaAPI.lua_tostring(L, 2);
                    
                    gen_to_be_invoked.ClientReportDownloadSuccess( _resourceName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClientReportDownloadFailed(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _resourceName = LuaAPI.lua_tostring(L, 2);
                    
                    gen_to_be_invoked.ClientReportDownloadFailed( _resourceName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClientReportDownloadLoading(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _actionName = LuaAPI.lua_tostring(L, 2);
                    
                    gen_to_be_invoked.ClientReportDownloadLoading( _actionName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_RecommendDeviceGrade(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.RecommendDeviceGrade);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_LastEventId(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.LastEventId);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_LastEventId(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Manager.EventTracingManager gen_to_be_invoked = (Yoozoo.Manager.EventTracingManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.LastEventId = LuaAPI.lua_tostring(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
